<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="{{__PUBLIC__}}/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="{{__PUBLIC__}}/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="{{__PUBLIC__}}/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="{{__PUBLIC__}}/Flat/img/favicon.ico">
	    <!-- 新 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">
		<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
		<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.min.js"></script>
		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="//cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<table class="table table-hover">
			<tr class="active">
			  <th width="30">sid</th>
			  <th>学生姓名</th>
			  <th>qq</th>
			  <th>电话</th>
			  <th>状态</th>
			  <th>操作</th>
			</tr>
			{{foreach from="$data" key="$k" value="$v"}}
				<tr>
					<td>{{$v['sid']}}</td>
					<td>{{$v['sname']}}</td>
					<td>{{$v['qq']}}</td>
					<td>{{$v['phone']}}</td>
					<td>
						{{if value="$v['state']==0"}}
							<h5><span class="label label-default">未联系</span></h5>
						{{elseif value="$v['state']==1"}}
							<h5><span class="label label-danger">已联系，没意向</span></h5>
						{{elseif value="$v['state']==2"}}
							<h5><span class="label label-warning">需继续联系</span></h5>
						{{elseif value="$v['state']==3"}}
							<h5><span  class="label label-success">已报名</span></h5>
						{{endif}}
					</td>
					<td>
						<a href="{{U('editStu',array('sid'=>$v['sid']))}}" class="btn btn btn-primary">修改信息</a>
						<div class="btn-group">
							<button type="button" class="btn btn-success dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
							状态<span class="caret"></span>
							</button>
							<ul class="dropdown-menu">
								<li><a href="{{U('editStat',array('sid'=>$v['sid'],'state'=>1))}}">没意向</a></li>
								<li><a href="{{U('editStat',array('sid'=>$v['sid'],'state'=>2))}}">继续联系</a></li>
								<li><a href="{{U('editStat',array('sid'=>$v['sid'],'state'=>3))}}">已报名</a></li>
							</ul>
						</div>
						<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin={{$v['qq']}}&site=qq&menu=yes"><img border="0" src="http://wpa.qq.com/pa?p=2:{{$v['qq']}}:51" alt="点击这里给{{$v['qq']}}发消息" title="点击这里给{{$v['qq']}}发消息"/></a>
					</td>
				</tr>
			{{endforeach}}
		</table>
		
	</body>
</html>
